//
//  Fraction.h
//  OC03_属性_点语法
//
//  Created by dllo on 16/5/24.
//  Copyright © 2016年 Rain. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Fraction : NSObject

@property (nonatomic, readwrite ,assign)NSInteger member;

@property (nonatomic, readwrite ,assign)NSInteger denominator;

-(instancetype)initWithMember:(NSInteger)member withDenominator:(NSInteger)denominator;

+(instancetype)FractionWithMember:(NSInteger)member withDenominator:(NSInteger)denominator;

-(Fraction *)addWithFra:(Fraction *)fra;

+(Fraction *)addXWithFra1:(Fraction *)fra1 withFra2:(Fraction *)fra2;

-(Fraction *)minuWithFra:(Fraction *)fra;

-(Fraction *)multipWithFra:(Fraction *)fra;

-(Fraction *)divisionWithFra:(Fraction *)fra;

-(void)reduction;

-(NSInteger)maxGCDWith:(NSInteger)num1 num2:(NSInteger)num2;

-(NSComparisonResult)compareWith:(Fraction *)otherFraction;


@end
